<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;
    pageContext.setAttribute("basePath",basePath);
%>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>银行调单系统</title>
    <%@include file="/common/header.jsp"%>
    <script type="text/javascript" src="${basePath}/js/bankorder/menus.js"></script>
</head>
<body class="hold-transition fq-white sidebar-mini fq-body">
<div class="wrapper">


    <header class="main-header">
        <!-- Logo -->
        <a href="#" class="logo">
            <span class="jdjr-logo"></span>
        </a>
        <nav class="navbar navbar-static-top">
            <h3 class="header-main-name">银行调单系统</h3>
            <div class="navbar-custom-menu">
                <ul class="nav navbar-nav">
                    <!-- User Account 用户帐户: style can be found in dropdown.less -->
                    <li class="dropdown user user-menu">
                        <a href="#" class="dropdown-toggle" >
                            <i class="fa fa-user"></i>
                            <span class="hidden-xs">罗曼蒂克</span>
                            ，你好
                        </a>
                    </li>
                    <li class="dropdown user user-menu">
                        <a href="#" class="dropdown-toggle">
                            <i class="fa  fa-sign-out"></i>
                            <span class="hidden-xs">退出</span>
                        </a>
                    </li>
                </ul>
            </div>
        </nav>
    </header>
    <!--  <div id="tree" style="width: 200px;height: 200px"/> -->
    <aside class="main-sidebar">
        <section class="sidebar">
            <ul class="sidebar-menu">
            </ul>
        </section>
    </aside>

    <!-- Content Wrapper. Contains page content  内容包装。包含每页内容-->
    <div class="content-wrapper" >

        <div id="iframe_box" class="Hui-article">
            <div class="show_iframe">
                <div style="display: none" class="loading"></div>
               <!-- <IFRAME marginWidth=0 marginHeight=0  frameBorder=0 width="100%" height="100%" scrolling="auto" name="manContent"></IFRAME> -->
                <iframe  id="manContent" name="manContent" width="100%" height="100%" frameborder="0" scrolling="no"
                        onLoad="this.height=this.contentWindow.document.documentElement.scrollHeight">
                </iframe>
            </div>
        </div>
    </div>
</div>

</body>

<script>
    //动态获取被引用的页面的高度
    function reinitIframe(){
        var iframe = document.getElementById("manContent");
        try{
            var bHeight = iframe.contentWindow.document.body.scrollHeight;
            var dHeight = iframe.contentWindow.document.documentElement.scrollHeight;
            var height = Math.max(bHeight, dHeight);
            iframe.height =  height;
        }catch (ex){}
    }
    window.setInterval("reinitIframe()", 100);

</script>
</html>
